// import api from "@/api";
// import { globalNotification } from "@/tips";
// console.log(`api`, api);
// main ...
import { EMOJI_LIST } from "./emoji";
import * as encoding from "./encoding";
const init = () => {
  console.log('start live emoji');
  // 随机出一个emoji
  const emoji = EMOJI_LIST[Math.floor(Math.random() * EMOJI_LIST.length)];
  console.log(`emoji`, emoji);
  // test
  const text = "hello world";
  // encode
  const encodeRes = encoding.encode(emoji, text);
  console.log(`encodeRes`, encodeRes);
  // decode
  const decodeRes = encoding.decode(encodeRes);
  console.log(`decodeRes`, decodeRes);
}

init();